package com.ishow.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 支付记录表
 * </p>
 *
 * @author cike
 * @since 2017-08-10
 */
@TableName("payment_record")
public class PaymentRecord extends Model<PaymentRecord> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 交易类型：
0–支付交易；
1–支付冲正（暂未启用）；
2–契约退订
3–自动续费
     */
	private Integer transtype;
    /**
     * 商户订单号
     */
	private String cporderid;
    /**
     * 计费支付平台的交易流水号
     */
	private String transid;
    /**
     * 用户在商户应用的唯一标识
     */
	private String appuserid;
    /**
     * 游戏id
     */
	private String appid;
    /**
     * 商品编码
     */
	private Integer waresid;
    /**
     * 计费方式
     */
	private Integer feetype;
    /**
     * 交易金额
     */
	private Float money;
    /**
     * 货币类型
     */
	private String currency;
    /**
     * 交易结果：
0–交易成功
1–交易失败
     */
	private Integer result;
    /**
     * 交易完成时间
     */
	private String transtime;
    /**
     * 商户私有信息
     */
	private String cpprivate;
    /**
     * 支付方式
     */
	private Integer paytype;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getTranstype() {
		return transtype;
	}

	public void setTranstype(Integer transtype) {
		this.transtype = transtype;
	}

	public String getCporderid() {
		return cporderid;
	}

	public void setCporderid(String cporderid) {
		this.cporderid = cporderid;
	}

	public String getTransid() {
		return transid;
	}

	public void setTransid(String transid) {
		this.transid = transid;
	}

	public String getAppuserid() {
		return appuserid;
	}

	public void setAppuserid(String appuserid) {
		this.appuserid = appuserid;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public Integer getWaresid() {
		return waresid;
	}

	public void setWaresid(Integer waresid) {
		this.waresid = waresid;
	}

	public Integer getFeetype() {
		return feetype;
	}

	public void setFeetype(Integer feetype) {
		this.feetype = feetype;
	}

	public Float getMoney() {
		return money;
	}

	public void setMoney(Float money) {
		this.money = money;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public Integer getResult() {
		return result;
	}

	public void setResult(Integer result) {
		this.result = result;
	}

	public String getTranstime() {
		return transtime;
	}

	public void setTranstime(String transtime) {
		this.transtime = transtime;
	}

	public String getCpprivate() {
		return cpprivate;
	}

	public void setCpprivate(String cpprivate) {
		this.cpprivate = cpprivate;
	}

	public Integer getPaytype() {
		return paytype;
	}

	public void setPaytype(Integer paytype) {
		this.paytype = paytype;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PaymentRecord{" +
			"id=" + id +
			", transtype=" + transtype +
			", cporderid=" + cporderid +
			", transid=" + transid +
			", appuserid=" + appuserid +
			", appid=" + appid +
			", waresid=" + waresid +
			", feetype=" + feetype +
			", money=" + money +
			", currency=" + currency +
			", result=" + result +
			", transtime=" + transtime +
			", cpprivate=" + cpprivate +
			", paytype=" + paytype +
			", createTime=" + createTime +
			"}";
	}
}
